﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 备忘录模式_游戏进度02
{
    class Program
    {
        static void Main(string[] args)
        {
            RoleState rs1 = new RoleState(100,100,100);
            rs1.Show();

            RoleStateCaretaker caretaker = new RoleStateCaretaker();
            caretaker.SaveIt(rs1.CreateMemento());
            rs1.SetAttr(30, 40, 60);
            rs1.Show();

            rs1.SetMemento(caretaker.GetIt());
            rs1.Show();
        }
    }
}
